home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
016a
/
xtclock2.zip
/
README.1ST
< prev
next >
Wrap
Text File
|
1991-07-30
|
2KB
|
61 lines
XTCLOCK2.ZIP is intended as a survival kit for the user
who somehow got stuck with an XT clock card and no
driver software. Files included are:
SETCLOCK.C
SETCLOCK.EXE
SETCLOCK.BAS
GETCLOCK.C
GETCLOCK.EXE
GETCLOCK.BAS
SEEPORTS.BAS
README.1ST (This file)
These programs have been written for a clock card with
the following port configuration:
&h242 Second
&h243 Minute
&h244 Hour
&h246 Day
&h247 Month
&h249 Year
Most clock cards and I/O cards currently available seem to fit
this configuration. The manual will probably give a port address
of &h240.
If you are sure your clock card matches this configuration
you can use SETCLOCK.EXE and GETCLOCK.EXE without modification.
To initialize your clock card, run SETCLOCK.EXE and follow the
instructions. Then run GETCLOCK to set the DOS time and date.
You can run GETCLOCK from your AUTOEXEC.BAT file to set the DOS
time and date when booting your computer. If your card does not
match this configuration you can modify either the C or BASIC
source files, depending on your compiler.
If you are not sure how your card is configured but you
have at least one port address, you can use SEEPORTS.BAS
to display your ports. If you have the right ports displayed
you will probably see them incrementing in strange jumps.
This is Binary Coded Decimal. The way BCD works is the
four low order bits represent the ones digit and the four
high order bits represent the tens digit.
If you are looking at a port that is incrementing at about
the right rate to represent seconds and it counts to 79 and drops
back to zero, you got it. If the next port increments by
one, at the same time, it is probably the one for minutes.
You can use the BASIC OUT statement to write into a port
and see if you can toggle another port. Eventually you should
be able to figure out what each port does. Some cards do not
increment the year but still store it at &h249.
Good luck, and I hope this gets your clock card working.
Gerald M. Vrooman
Chenango Forks, N.Y.